package org.apache.rocketmq.client.java.retry;

import java.time.Duration;


public interface RetryPolicy {

    int getMaxAttempts();

    Duration getNextAttemptDelay(int attempt);

    RetryPolicy updateBackoff(apache.rocketmq.v2.RetryPolicy retryPolicy);

    apache.rocketmq.v2.RetryPolicy toProtobuf();
}